<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:body>

	<h:form id="formProg">
		<div align="center" class="DivCentralizada"
			style="left: 50%; margin-left: -500px; height: 110px;">
			<div align="center"
				style="padding-left: 59px; float: left; padding-right: 24px;">
				<h:outputLabel value="#{message.msg_dataDe} " styleClass="LabelFont" />
				<p:inputMask value="#{programacaoProducaoTela.dataDeFiltro}"
					size="5" maxlength="8" style="font-size: 14px;" mask="99/99/99"
					required="true" requiredMessage="#{message.msg_requerido}">
				</p:inputMask>
			</div>
			<div align="center" style="float: left;">
				<h:outputLabel value=" #{message.msg_dataAte} "
					styleClass="LabelFont" />
				<p:inputMask value="#{programacaoProducaoTela.dataAteFiltro}"
					size="5" maxlength="8" style="font-size: 14px;" mask="99/99/99"
					required="true" requiredMessage="#{message.msg_requerido}">
				</p:inputMask>
			</div>

			<div align="center"
				style="padding-left: 25px; float: left; padding-right: 24px;">
				<h:outputLabel value="#{message.label_setor_de} "
					styleClass="LabelFont" />
				<p:inputText value="#{programacaoProducaoTela.setorDeFiltro}"
					size="2" maxlength="3" style="font-size: 14px;">
				</p:inputText>
			</div>
			<div align="center" style="float: left;">
				<h:outputLabel value=" #{message.label_setor_ate} "
					styleClass="LabelFont" />
				<p:inputText value="#{programacaoProducaoTela.setorAteFiltro}"
					size="2" maxlength="3" style="font-size: 14px;">
				</p:inputText>
			</div>

			<div align="center"
				style="clear: both; float: left; padding-right: 3px; padding-top: 8px; margin-left: 47px;">
				<h:outputLabel value="#{message.solicita_filial}"
					styleClass="LabelFont" style="margin-left:30px;" />
			</div>
			<div align="center"
				style="float: left; padding-right: 24px; padding-top: 4px;">
				<p:selectOneMenu value="#{programacaoProducaoTela.filialFiltro}"
					effect="fade" style="font-size: 13px;">
					<f:selectItem itemLabel="" itemValue="" />
					<f:selectItems value="#{usuario.listaEmpresas}" var="empresa"
						itemLabel="#{empresa.descricao}" itemValue="#{empresa.filial}"
						style="font-size: 13px;" />
					<p:ajax global="false" />
				</p:selectOneMenu>
			</div>
			
			<div align="center"
				style="float: left; padding-right: 3px; padding-top: 8px; margin-left: 47px;">
				<h:outputLabel value="Tipo Prog. "
					styleClass="LabelFont" style="margin-left:30px;" />
			</div>
			<div align="center"
				style="float: left; padding-right: 24px; padding-top: 4px;">
				
				<p:selectOneRadio value="#{programacaoProducaoTela.tipoPrgFiltro}"
					style="float:left;">
					<f:selectItem itemLabel="PV/OP" itemValue="PV" />
					<f:selectItem itemLabel="SP" itemValue="SP" />
				</p:selectOneRadio>
			</div>
			
			
			<div align="center"
				style="clear: both; float: left; padding-right: 3px; padding-top: 8px; margin-left: 47px;">
				<h:outputLabel value="#{message.label_linha}" styleClass="LabelFont"
					style="margin-left:30px;" />
			</div>
			<div align="center"
				style="float: left; padding-right: 24px; padding-top: 4px;">
				<p:selectOneMenu value="#{programacaoProducaoTela.linhaFiltro}"
					effect="fade" style="font-size: 13px;">
					<f:selectItem itemLabel="Todas" itemValue="" />
					<f:selectItem
						itemLabel="#{message.label_linha} #{message.label_leve}"
						itemValue="I1" />
					<f:selectItem
						itemLabel="#{message.label_linha} #{message.label_pesada}"
						itemValue="I2" />
				</p:selectOneMenu>
			</div>

			<div style="margin-top: 10px; margin-left: 150px; float: left;">
				<p:commandButton value="#{message.botao_filtrar}"
					icon="ui-icon-search" style="margin-left:30px; font-size: 14px;"
					update=":messages,:panelProg,@form"
					action="#{programacaoProducaoTela.filtraProgramacao}" />
			</div>
		</div>
	</h:form>


	<h:outputText id="panelProg" escape="false"
		value="#{programacaoProducaoTela.htmlProgramacao}" />



</h:body>
</html>